import request from '@/utils/request';
// /tournaments/list
export function getTournamentsList(params) {
  return request({
    url: '/tournaments/list',
    method: 'get',
    params: params,
  });
}
// tournaments/create
export function createTournament(data) {
  return request({
    url: '/tournaments/create',
    method: 'post',
    data: data,
  });
}
// /tournament-teams/create
export function createTournamentTeam(data) {
  return request({
    url: '/tournament-teams/create',
    method: 'post',
    data: data,
  });
}
// /tournament-teams/list
export function getTournamentTeamsList(params) {
  return request({
    url: '/tournament-teams/list',
    method: 'get',
    params: params,
  });
} 
// /tournament-leaderboard/list
export function getTournamentLeaderboardList(params) {
  return request({
    url: '/tournament-leaderboard/list',
    method: 'get',
    params: params,
  });
}
// /tournaments/match/1
export function getTournamentMatch(id) {
  return request({
    url: '/tournaments/match/' + id,
    method: 'get',
  });
}
